import request from '@/utils/request'
// 查询
export function fetchList(data) {
  return request({
    url:'/specification/selectallspe.action',
    method:'post',
    data
  })
}
// 新增
export function createProductAttrCate(data) {
  return request({
    url:'/specification/insertSelective.action',
    method:'post',
    data
  })
}
// 删除
export function deleteProductAttrCate(data) {
  return request({
    url:'/specification/deleteByPrimaryKey.action',
    method:'post',
    data
  })
}
// 修改
export function updateProductAttrCate(data) {
  return request({
    url:'/specification/updateByPrimaryKey.action',
    method:'post',
    data
  })
}
// 规格值查询
export function getListKey(data) {
  return request({
    url:'/standards/selectstandars.action',
    method:'post',
    data
  })
}
// 规格值新增
export function createkey(data) {
  return request({
    url:'/standards/insertSelective.action',
    method:'post',
    data
  })
}
// 规格值删除
export function deleteKey(data) {
  return request({
    url:'/standards/deleteByPrimaryKey.action',
    method:'post',
    data
  })
}
// 规格值修改
export function updateKey(data) {
  return request({
    url:'/standards/updateByPrimaryKeySelective.action',
    method:'post',
    data
  })
}

// 规格值图片
export function updateSpeImg(data) {
  return request({
    url:'/stanpicture/updatepicture.action',
    headers: {'Content-Type': 'multipart/form-data'},
    method:'post',
    data
  })
}


export function fetchListWithAttr() {
  return request({
    url:'/productAttribute/category/list/withAttr',
    method:'get'
  })
}

